Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipnize drucker #6

Merged
merged 9 commits into from
Nov 1, 2018
Merged

Pipnize drucker #6

merged 9 commits into from
Nov 1, 2018

Conversation

keigohtr
Copy link
Member

What is this PR for?

To gain the usability, we have developed pipnized Drucker.

Note

  • I referred the architecture of Kubernetes python client and Flask.
  • After confirmed, we will upload this to Pypi.
  • Travis is not included in this PR.

This PR includes

  • Organize the architecture
  • Add unittest

What type of PR is it?

Feature

What is the issue?

#2

How should this be tested?

Example

@CLAassistant
Copy link

CLAassistant commented Oct 16, 2018

CLA assistant check
All committers have signed the CLA.

db_name = "test_"+config.DB_MYSQL_DBNAME if config.TEST_MODE else config.DB_MYSQL_DBNAME
user = config.DB_MYSQL_USER
password = config.DB_MYSQL_PASSWORD
url = f'mysql+pymysql://{user}:{password}@{host}:{port}/{db_name}?charset=utf8'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function uses f-string twice and only Python 3.6+ support f-string. Should we change these two lines to support python 3.4 and 3.5?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good!
Before committing the change mentioned above, please confirm all unittests pass correctly.

- python: 3.6
env: TOXENV=py36
- python: 3.6
env: TOXENV=coverage,codecov

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add python 3.7? I think 3.7 is the latest major release and the code looks fine with the latest version.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To my memory is correct, @sugyan san tried to use python 3.7 but it didn't work. This is because async is not supported in python 3.7.

@sugyan san, could you give us your insight?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there was such a problem. But it only happens with older versions of kubernetes-client, and seems to work well with the current version.

Anyway, this repository does not use kubernetes-client, so it seems that there is no problem even adding 3.7 to support targets.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sugyan san!
OK, let’s support Python 3.7.

@yoquankara
Copy link
Member

What is blocking this PR?
Is it support for more Python versions in f-string and travis.yml , only?

@keigohtr
Copy link
Member Author

@yoquankara There is no blocking stuffs.
I will merge this PR during this week. I will fix Python versions and f-string in the next PR.

@yoquankara
Copy link
Member

I see, thank you. LGTM

@keigohtr keigohtr changed the title [DO NOT MERGE] Pipnize drucker Pipnize drucker Nov 1, 2018
@keigohtr keigohtr merged commit 85fa472 into master Nov 1, 2018
@keigohtr keigohtr deleted the feature/pipnize-drucker branch November 1, 2018 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants